// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * SalesRecurringProfileOrder generated by hbm2java
 */
@Entity
@Table(name = "sales_recurring_profile_order", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"profile_id", "order_id" }))
public class SalesRecurringProfileOrder implements java.io.Serializable {

	private Integer linkId;
	private SalesFlatOrder salesFlatOrder;
	private SalesRecurringProfile salesRecurringProfile;

	public SalesRecurringProfileOrder() {
	}

	public SalesRecurringProfileOrder(SalesFlatOrder salesFlatOrder,
			SalesRecurringProfile salesRecurringProfile) {
		this.salesFlatOrder = salesFlatOrder;
		this.salesRecurringProfile = salesRecurringProfile;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "link_id", unique = true, nullable = false)
	public Integer getLinkId() {
		return this.linkId;
	}

	public void setLinkId(Integer linkId) {
		this.linkId = linkId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "order_id", nullable = false)
	public SalesFlatOrder getSalesFlatOrder() {
		return this.salesFlatOrder;
	}

	public void setSalesFlatOrder(SalesFlatOrder salesFlatOrder) {
		this.salesFlatOrder = salesFlatOrder;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "profile_id", nullable = false)
	public SalesRecurringProfile getSalesRecurringProfile() {
		return this.salesRecurringProfile;
	}

	public void setSalesRecurringProfile(
			SalesRecurringProfile salesRecurringProfile) {
		this.salesRecurringProfile = salesRecurringProfile;
	}

}
